<?php namespace Common\Model;use Think\Model;/**@author 王强<opjklu@126.com> */class AttachModel extends Model{private static $obj ;public static function getInitation(){$class = __CLASS__; return self::$obj = !(self::$obj instanceof $class) ? new self() : self::$obj;}public function parseNotice($data) {$receiveData = $this->getField('id,name');return !in_array($data, $receiveData) ? false : true;}}